﻿<UserControl x:Class="DienVu.NewFarpac"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" 
             d:DesignHeight="313" d:DesignWidth="287" BorderBrush="#FFF14A4A" BorderThickness="6" HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
    <StackPanel Height="Auto" Name="stackPanel1" Width="Auto" Background="#FFF5F5C3">
        <TextBlock Height="Auto" Name="textBlock7" Text="FARPAC AUTO CREATION FORM :" Margin="12" FontWeight="Bold" Foreground="#FF0C76BA" />
        <WrapPanel Height="33" Name="wrapPanel4" Width="230">
            <TextBlock FontSize="14" FontWeight="Normal" Foreground="#FFB92B2B" Height="20" Name="textBlock3" Text="Ticket No :" TextAlignment="Left" TextWrapping="NoWrap" Width="90" Margin="5" />
            <ComboBox Height="23" Name="cmbTicket" Width="120" IsEditable="True" ItemsSource="{Binding}" Margin="5" DropDownClosed="cmbTicket_DropDownClosed">
                <ComboBox.ItemTemplate>
                    <DataTemplate>
                        <TextBlock DataContext="{Binding}">
                            <TextBlock.Text>
                                <MultiBinding StringFormat="{}{0} : {1}">
                                    <Binding Path="Number" />
                                    <Binding Path="WellName" />
                                </MultiBinding>
                            </TextBlock.Text></TextBlock>
                    </DataTemplate>
                </ComboBox.ItemTemplate>
            </ComboBox>
        </WrapPanel>
        <WrapPanel Height="33" Name="wrapPanel2" Width="230">
            <TextBlock FontSize="14" FontWeight="Normal" Foreground="#FFB92B2B" Height="20" Name="textBlock1" Text="Job Type :" TextAlignment="Left" TextWrapping="NoWrap" Width="90" Margin="5" />
            <ComboBox Height="23" Name="cmbJobType" Width="120" Text="PERFORATING - OTHERS BOM #7548" Margin="5"></ComboBox>
        </WrapPanel>
        <WrapPanel Height="33" Name="wrapPanel3" Width="230">
            <TextBlock FontSize="14" FontWeight="Normal" Foreground="#FFB92B2B" Height="20" Name="textBlock2" Text="Well Name :" TextAlignment="Left" TextWrapping="NoWrap" Width="90" Margin="5" />
            <ComboBox Height="23" Name="cmbWell" Width="120" IsEditable="True" Margin="5" />
        </WrapPanel>
        <WrapPanel Height="33" Name="wrapPanel5" Width="230">
            <TextBlock FontSize="14" FontWeight="Normal" Foreground="#FFB92B2B" Height="20" Name="textBlock4" Text="Date :" TextAlignment="Left" TextWrapping="NoWrap" Width="90" Margin="5" />
            <TextBox Height="23" Name="textBox1" Width="120" Margin="5" />
        </WrapPanel>
        <WrapPanel Height="33" Name="wrapPanel6" Width="230">
            <TextBlock FontSize="14" FontWeight="Normal" Foreground="#FFB92B2B" Height="20" Name="textBlock5" Text="Unit No. :" TextAlignment="Left" TextWrapping="NoWrap" Width="90" Margin="5" />
            <ComboBox Height="23" Name="comboBox4" Width="120" IsEditable="True" ItemsSource="{Binding}" Margin="5">
                <ComboBoxItem Content="ELU-8434" IsSelected="True" />
            </ComboBox>
        </WrapPanel>
        <WrapPanel Height="33" Name="wrapPanel7" Width="230">
            <TextBlock FontSize="14" FontWeight="Normal" Foreground="#FFB92B2B" Height="20" Name="textBlock6" Text="Cable Drum :" TextAlignment="Left" TextWrapping="NoWrap" Width="90" Margin="5" />
            <ComboBox Height="23" Name="cmbCableDrum" Width="120" IsEditable="True" Margin="5"></ComboBox>
        </WrapPanel>
        <WrapPanel Height="Auto" Name="wrapPanel1" Width="Auto" VerticalAlignment="Center" HorizontalAlignment="Center">
            <Button BorderThickness="0" Content="CREATE" FlowDirection="LeftToRight" FontSize="16" FontWeight="Bold" Height="30" Margin="12" Name="button1" Width="100" VerticalAlignment="Center" HorizontalAlignment="Center" Click="button1_Click" DataContext="{Binding}">
                <Button.Foreground>
                    <LinearGradientBrush EndPoint="1,0.5" StartPoint="0,0.5">
                        <GradientStop Color="Black" Offset="0" />
                        <GradientStop Color="#FFAF0000" Offset="1" />
                    </LinearGradientBrush>
                </Button.Foreground>
            </Button>
            <Button BorderThickness="0" Content="CANCEL" FlowDirection="LeftToRight" FontSize="16" FontWeight="Bold" Height="30" Margin="12" Name="button2" Width="108" VerticalAlignment="Center" HorizontalAlignment="Center" Click="button2_Click">
                <Button.Foreground>
                    <LinearGradientBrush EndPoint="1,0.5" StartPoint="0,0.5">
                        <GradientStop Color="#FF2BA7A7" Offset="0" />
                        <GradientStop Color="#FF025EAD" Offset="1" />
                    </LinearGradientBrush>
                </Button.Foreground>
            </Button>
        </WrapPanel>
    </StackPanel>
</UserControl>
